import request from '@/utils/request/index.js'
export default {
    attention(userId,shoucangFlag=true){
        return request.request({
            url: '/h5/noccloudhome/shoucang',
            data: {
                userId: userId,
                shoucangFlag: shoucangFlag,
            }
        });
    },
    /**
     * 获取关注列表
     */
    getAtteNews({page = 1, limit = 10,userId=''}){
        return request.request({
            url:"/h5/nocnews/atteNewlist",
            data: {
                page: page + '',
                limit: limit + '',
                userId:userId
            }
        })
    },
    /**
     * 上面三个的推荐关注
     */
    getAtteList({page = 1, limit = 10, userId = ''}){
        return request.request({
            url: '/h5/nocyxcollect/searchAttenList',
            data: {
                userId: 1030052,
                page: page + '',
                limit: limit + ''
            }
        })
    },
/**
 * 获取视频列表
 */
getVideoList({page = 1, limit = 10, userId = '',search=''}){
    return request.request({
        url: '/h5/nocvideo/list',
        data: {

            relatedType:1,
            page: page ,
            limit: limit ,
            search: search,

            lastpage:0,
            totalPage:"",
            totalCount:"",
            userId:userId,


            tagType:2,
            tagId:0
        }
    })
},
    /**
     * 获取直播列表
     */
    searchLive({page = 1, limit = 10, userId = '',search=''}){
        return request.request({
            url: '/h5/cloudlive/livelist',
            data: {
                search: search,
                relatedType:1,
                page: page + '',
                limit: limit + ''
            }
        })
    },
    /**
     *
     * */
    getSearchProductClassify(){
        return request.request({
            url: '/h5/searchwordconfig/queryList',
            data: {
                relatedType : 1
            }
        })
    },
    /**
     * 推荐列表
     */
    getKeywordCoalesce({page = 1, limit = 10, userId = '',search=''}){
        return request.request({
            url: '/h5/noccoalesce/basicKeywordList',
            data: {
                relatedType : 1,
                page: page + '',
                limit: limit + '',
                userId: userId,
                search : search,
            }
        })
    },
    /**
     * 获取分享页面参数配置
     */
    getPageShareConfig({page = 1, limit = 10, userId = '',search=''}){
        return request.request({
            url: '/h5/pageshareconfig/getPageShareConfig',
            method:"GET",
            data: {
                relatedType : 1,
                page: page + '',
                limit: limit + '',
                userId: userId,
                search : search,
            }
        })
    }



}
